package com.zhanglinwei.openApiClient.segment;

import java.io.Serializable;

@FunctionalInterface
public interface SQLSegment extends Serializable {

    String sqlSegment();


    default void add(SQLSegment... sqlSegments) {
        throw new UnsupportedOperationException("## SQLSegment.add method does not implement the class ");
    }

    default boolean isEmpty() {
        return true;
    }

    default boolean isNotEmpty() {
        return !isEmpty();
    }
}
